<template>
	<view :style="themeColor">
		<view class="page">
			<view class="flex flex-direction flex-wrap align-stretch benben-position-layout flex dataMargin_flex_0"
				:style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
				<view class='flex flex-wrap align-center justify-between dataMargin_fd0_0'>
					<view class='flex flex-wrap align-center dataMargin_fd0_0_c0' @tap.stop="handleJumpDiy"
						data-type="back" data-url="1">
						<text class='fu-iconfont2  dataMargin_fd0_0_c0_c0'>&#xE794;</text>
					</view>
					<view class='flex flex-wrap align-center'>
						<text class='dataMargin_fd0_0_c1_c0'>我的保证金</text>
					</view>
					<view class='flex align-center justify-end dataMargin_fd0_0_c0'>
					</view>
				</view>

			</view>
			<view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
			<!---flex布局flex布局开始-->
			<view class="flex flex-direction flex-wrap align-stretch benben-flex-layout dataMargin_flex_1">
				<view class='flex flex-direction flex-wrap align-stretch dataMargin_fd1_0'>
					<view class='flex flex-direction flex-wrap align-center justify-center'>
						<text class='dataMargin_fd1_0_c0_c0'>{{userData.yajin}}</text>
						<text class='dataMargin_fd1_0_c0_c1'>保证金金额(元)</text>
					</view>
					<view class='flex flex-wrap align-center justify-center dataMargin_fd1_0_c1'>
						<button class='dataMargin_fd1_0_c1_c0' @tap.stop="handleJumpDiy" data-type="navigateTo"
							:data-url="`/pages/wode/immediateWithdrawal/immediateWithdrawal?type=3`">提现</button>
						<button class='dataMargin_fd1_0_c1_c1' @tap.stop="handleJumpDiy" data-type="navigateTo"
							:data-url="`/pages/login/bondPay/bondPay`">充值</button>
					</view>
				</view>
			</view>

			<!---flex布局flex布局结束-->
			<!---flex布局flex布局开始-->
			<view class="flex benben-flex-layout flex-wrap align-center dataMargin_flex_2">
				<text class='dataMargin_fd2_0'>近30天记录</text>
			</view>

			<!---flex布局flex布局结束-->
			<!---flex布局flex布局开始-->
			<view class="flex flex-direction flex-wrap align-stretch benben-flex-layout dataMargin_flex_3">
				<template v-for='(item,key0) in detailedList'>
					<view class='flex flex-wrap align-center dataMargin_fd3_0' :key='key0'>
						<view class='flex flex-direction flex-wrap align-stretch flex-sub'>
							<text class='dataMargin_fd3_0_c0_c0'>{{item.beizhu}}</text>
							<text class='dataMargin_fd3_0_c0_c1'>{{item.create_time}}</text>
						</view>
						<text class='dataMargin_fd3_0_c1' v-if=" item.leixing=='2'">{{item.biangengjine}}</text><text
							class='dataMargin_fd3_0_c1_1' v-if=" item.leixing=='1'">{{item.biangengjine}}</text>
					</view>
				</template>
				<fu-empty :pagingListLoadedAll="pagingListLoadedAll" :pagingListNoListData="pagingListNoListData"
					:listDataLength="listDataLength" :isLoadInit="isLoadInit"></fu-empty>
			</view>

			<!---flex布局flex布局结束-->


		</view>
	</view>
</template>
<script>
	import pagingList from '@/common/mixin/paging_list.js';
	import {
		validate
	} from '@/common/utils/validate.js'

	export default {
		components: {},
		mixins: [pagingList],

		data() {
			return {
				"minixPagingListsApi": "",
				"pageingListApiMethod": "",
				"allowOnloadGetList": false,
				"detailedList": [],
				"userData": {
					"invite_code": "",
					"address": "",
					"address_code": "",
					"hobby": "",
					"tags": "",
					"id": "",
					"userlevel_id": "",
					"mobile": "",
					"real_name": "",
					"nickname": "",
					"avatar": "",
					"account": "",
					"email": "",
					"birthday": "",
					"gender": "",
					"create_time": "",
					"user_money": "",
					"freeze_money": "",
					"total_consumption_money": "",
					"score": "",
					"_mobile": "",
					"coupon": "",
					"collection_count": "",
					"browse_count": "",
					"total_money": "",
					"certified": "",
					"is_pay_password": "",
					"fuwuxingji": "",
					"gongzuozhuangtai": "",
					"shuzi": "",
					"jifen": "",
					"yajin": "",
					"level": {
						"aid": "",
						"name": "",
						"icon": "",
						"levelid": ""
					},
					"invite_num": "",
					"commission": "",
					"is_deposit": "",
					"is_account": "",
					"dengjidaoqishijian": "",
					"suozaidi": "",
					"huiyuanyue": "",
					"working_hours": "",
					"credit_score": "",
					"deposit": "",
					"deposit_switch": "",
					"withdrawal": "",
					"account_wx": "",
					"account_alipay": "",
					"account_bank": ""
				},
				"submitDeposit": {
					"order_no": "",
					"amount": ""
				}
			};
		},
		computed: {
			themeColor() {
				return this.$store.getters.themeColor
			},
			userInfo: {
				get() {
					return this.$store.state.userInfo
				},
				set() {
					this.$store.commit('updateUserInfo', value)
				},
			}
		},
		watch: {},
		onLoad(options) {

		},
		onUnload() {

		},
		onReady() {

		},
		onShow() {
			this.getMoneyFunc()
			this.getDetailFunc()
		},
		onHide() {

		},
		onResize() {

		},
		onPullDownRefresh() {
			this.getDetailFunc()
			this.getMoneyFunc()
		},
		onReachBottom(e) {

		},
		onPageScroll(e) {

		},
		methods: {
			//获取钱包金额
			async getMoneyFunc() {
				//请求方法
				//数据验证

				let datauserData = await this.$api.get(global.apiUrls.post5c78c4772da97, {
					user_id: this.userInfo.id
				});

				if (datauserData.data.code != 1) {
					this.$message.info(datauserData.data.msg);
					return
				}
				let infouserData = datauserData.data;
				this.userData = infouserData.data

			},
			//获取明细信息
			getDetailFunc() {
				this.minixPagingListsApi = global.apiUrls.post647f12134314e;
				this.pageingListApiMethod = 'get';
				this.allowOnloadGetList = false;
				this.pagingListPostDataContent = {}
				this.listData = [];
				this.detailedList = this.listData;
				this.pagingListToggle();

			},
			pagingListPostData() {
				return this.pagingListPostDataContent
			}
		}
	};
</script>
<style lang="scss" scoped>
	.page {
		width: 100vw;
		overflow-x: hidden;
		min-height: calc(100vh - var(--window-bottom));
		background: transparent;
		background-size: 100% auto;
	}

	.dataMargin_flex_0 {
		background: url(image-path('116.png')) no-repeat;
		width: 750rpx;
		height: 88rpx;
		overflow: hidden;
		z-index: 10;
		top: 0rpx;
		background-size: 100% auto !important;
	}

	.dataMargin_fd0_0_c1_c0 {
		font-size: 36rpx;
		font-weight: 500;
		color: #fff;
	}

	.dataMargin_fd0_0_c0_c0 {
		font-size: 36rpx;
		color: #fff;
		font-weight: 500;
	}

	.dataMargin_fd0_0_c0 {
		width: 200rpx;
		height: 88rpx;
	}

	.dataMargin_fd0_0 {
		padding: 0rpx 32rpx 0rpx 32rpx;
		line-height: 88rpx;
	}

	.dataMargin_flex_1 {
		padding: 40rpx 24rpx 0rpx 24rpx;
	}

	.dataMargin_fd1_0_c1_c1 {
		background: #3090FF;
		border-radius: 32rpx 32rpx 32rpx 32rpx;
		font-size: 28rpx;
		color: #fff;
		width: 190rpx;
		height: 64rpx;
		line-height: 64rpx;
		font-weight: 400;
		margin: 0rpx 0rpx 0rpx 60rpx;
	}

	.dataMargin_fd1_0_c1_c0 {
		background: #3090FF;
		border-radius: 32rpx 32rpx 32rpx 32rpx;
		font-size: 28rpx;
		color: #fff;
		width: 190rpx;
		height: 64rpx;
		line-height: 64rpx;
		font-weight: 400;
	}

	.dataMargin_fd1_0_c1 {
		margin: 60rpx 40rpx 0rpx 40rpx;
	}

	.dataMargin_fd1_0_c0_c1 {
		color: #666666;
		font-size: 28rpx;
		font-weight: 500;
		line-height: 40rpx;
	}

	.dataMargin_fd1_0_c0_c0 {
		color: #333333;
		font-size: 48rpx;
		font-weight: 700;
		line-height: 57rpx;
		margin: 0rpx 0rpx 16rpx 0rpx;
	}

	.dataMargin_fd1_0 {
		background: rgba(255, 255, 255, 1);
		border-radius: 16rpx 16rpx 16rpx 16rpx;
		box-shadow: 0rpx 3rpx 20rpx rgba(0, 0, 0, 0.06);
		padding: 52rpx 40rpx 44rpx 40rpx;
	}

	.dataMargin_flex_2 {
		padding: 0rpx 32rpx 0rpx 32rpx;
		margin: 32rpx 0rpx 32rpx 0rpx;
	}

	.dataMargin_fd2_0 {
		color: #333333;
		font-size: 32rpx;
		font-weight: 700;
		line-height: 45rpx;
	}

	.dataMargin_flex_3 {
		// background: rgba(255, 255, 255, 1);
		background-size: 100% auto;
		padding: 0rpx 32rpx 0rpx 32rpx;
		overflow: hidden;
	}

	.dataMargin_fd3_0_c1_1 {
		font-size: 32rpx;
		font-weight: 600;
		color: rgba(255, 80, 80, 1);
		line-height: 40rpx;
	}

	.dataMargin_fd3_0_c1 {
		font-size: 32rpx;
		font-weight: 600;
		color: #333;
		line-height: 40rpx;
	}

	.dataMargin_fd3_0_c0_c1 {
		color: #BFBFBF;
		font-size: 24rpx;
		font-weight: 400;
		line-height: 34rpx;
	}

	.dataMargin_fd3_0_c0_c0 {
		color: #333333;
		font-size: 28rpx;
		font-weight: 400;
		line-height: 38rpx;
		-webkit-line-clamp: 1;
		overflow: hidden;
		text-overflow: ellipsis;
		display: -webkit-box;
		-webkit-box-orient: vertical;
		margin: 0rpx 0rpx 8rpx 0rpx;
	}

	.dataMargin_fd3_0 {
		background: #fff;
		// border-bottom: 1px solid #eee;
		padding: 32rpx 24rpx 32rpx 24rpx;
		border-radius: 16rpx;
		margin-bottom: 20rpx;
	}
</style>